package com.fourforfo.fourmall.product.feign;

import com.fourforfo.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("fourmall-seckill")
public interface SeckillFeignService {

    /**
     * 获取某商品的秒杀信息，即是否是秒杀商品，以及秒杀的上次等等
     */
    @ResponseBody
    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId")Long skuId);
}
